import Api from 'api';

class WebApi {

    queryOrderList = (params = {}) => Api({
        url: 'order/comment/list',
        method: 'POST',
        body: Object.assign({}, params)
    })

    addCommentReply = (params = {}) => Api({
        url: 'order/comment/reply/add',
        method: 'POST',
        body: Object.assign({}, params)
    })

    updateCommentShowState = (params = {}) => Api({
        url: 'order/comment/state/update',
        method: 'POST',
        body: Object.assign({}, params)
    })

    updateReplyShowState = (params = {}) => Api({
        url: 'order/reply/state/update',
        method: 'POST',
        body: Object.assign({}, params)
    })

    deleteComments = (params = {}) => Api({
        url: 'order/comment/delete',
        method: 'POST',
        body: Object.assign({}, params)
    })

}

export default new WebApi();